home *** CD-ROM | disk | FTP | other *** search
/ Softwarová Záchrana 3 / Softwarova-zachrana-3.bin / Xteq X-Setup / xqdcXSP-Setup-EN.exe / {app} / plugins / XQ Terminal Services Clear MRU.xpl < prev    next >
Text File  |  2003-07-30  |  1KB  |  46 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="5"
  3. "COUNT"="1"
  4. "UIPATH"="Program Options\Other Programs\MS Terminal Services"
  5. "NAME"="Clear Items"
  6. "VERSION"="1.02"
  7. "LANGUAGE"="VBScript"
  8. "TEXT 1"="Clear recent file list"
  9. "DESCRIPTION 1"="If you do not want that other people can see the items you have opened, click the button."
  10. "AUTHOR"="Xteq Systems"
  11. "CONTACTURL"="http://members.fortunecity.com/computingx/"
  12. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  13. "COMMENT 1"="Aren't plug-in comments great? <g> - CptSiskoX"
  14. "COMMENT 2"="http://www.fortunecity.com/meltingpot/ny/413/"
  15.  
  16. sP="HKCU\Software\Microsoft\Terminal Server Client\Default"
  17.  
  18. Sub Plugin_Initialize 
  19.   If RegPathExists(sP)=false then
  20.      Disable()
  21.   end if 
  22. End Sub
  23.  
  24. Sub Plugin_CheckData(ElementIndex)
  25. End Sub
  26.  
  27. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  28.  if ElementIndex=1 then     
  29.     for l=1 to 50
  30.         s="mru" & l
  31.         v=RegReadValue(sP & s)
  32.         
  33.         If IsEmpty(v)=false then
  34.            Call RegDeleteValue(sP & S)
  35.         end if
  36.     Next
  37.  
  38.     Call MsgInformation("Cleared!")
  39.  end if
  40.  
  41.  
  42. End Sub
  43.  
  44. Sub Plugin_Terminate 
  45. End Sub
  46.